<?php
/*
 * Delete a sesson for a user.
 */

// authenticate user first
F3::call('authentication.php');
if (F3::exists('auth_error'))
{
  // authentication failed
  return;
}

// delete current session
F3::clear('SESSION.user_id');

header('HTTP/1.1 204');
header("Content-Type: application/json");

?>
